package com.greenyoung.pwiki.elindex.config;

import com.greenyoung.pwiki.common.consts.ConstMq;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitMqConfig {
    @Bean
    public Queue elQueue() {
        return new Queue(ConstMq.ELASTICSEARCH_INDEX_QUEUE);
    }
}
